package cn.com.anypay.manager.miaoma.manual.student;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cn.com.anypay.manager.miaoma.manual.student.mapper.StudentMapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public void insert(Student entity) {
        studentMapper.insert(entity);
    }

    @Override
    public void deleteById(Long id) {
        studentMapper.deleteById(id);
    }

    @Override
    public void deleteByMap(Map<String, Object> columnMap) {
        studentMapper.deleteByMap(columnMap);
    }

    @Override
    public void deleteBatchIds(List<Long> ids) {
        studentMapper.deleteBatchIds(ids);
    }

    @Override
    public void updateById(Student entity) {
        studentMapper.updateById(entity);
    }

    @Override
    public void update(Student entity, QueryWrapper<Student> updateWrapper) {
        studentMapper.update(entity, updateWrapper);
    }

    @Override
    public Student selectById(Long id) {
        return studentMapper.selectById(id);
    }

    @Override
    public List<Student> selectBatchIds(List<Long> ids) {
        return studentMapper.selectBatchIds(ids);
    }

    @Override
    public List<Student> selectByMap(Map<String, Object> columnMap) {
        return studentMapper.selectByMap(columnMap);
    }

    @Override
    public Student selectOne(QueryWrapper<Student> queryWrapper) {
        return studentMapper.selectOne(queryWrapper);
    }

    @Override
    public Long selectCount(QueryWrapper<Student> queryWrapper) {
        return studentMapper.selectCount(queryWrapper);
    }

    @Override
    public List<Student> selectList(QueryWrapper<Student> queryWrapper) {
        return studentMapper.selectList(queryWrapper);
    }

    @Override
    public List<Map<String, Object>> selectMaps(QueryWrapper<Student> queryWrapper) {
        return studentMapper.selectMaps(queryWrapper);
    }

    @Override
    public List<Object> selectObjs(QueryWrapper<Student> queryWrapper) {
        return studentMapper.selectObjs(queryWrapper);
    }

    @Override
    public IPage<Student> selectPage(Page<Student> page, QueryWrapper<Student> queryWrapper) {
        return studentMapper.selectPage(page, queryWrapper);
    }

    @Override
    public IPage<Map<String, Object>> selectMapsPage(Page<Map<String, Object>> page, QueryWrapper<Student> queryWrapper) {
        return studentMapper.selectMapsPage(page, queryWrapper);
    }
}